package org.amphiprion.rfreplayanalyser.ui.race;

public class EventItem implements Comparable<EventItem> {

	public String label;
	public float replayTime;
	public long driverId = -1;

	@Override
	public String toString() {
		return label;
	}

	@Override
	public int compareTo(EventItem o) {
		if (replayTime < o.replayTime) {
			return -1;
		} else if (replayTime > o.replayTime) {
			return 1;
		} else {
			return 0;
		}
	}

}
